package com.example.dw.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.dw.entity.ActivitySession;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 活动场次Mapper接口
 * @author system
 * @since 2024-01-01
 */
@Mapper
public interface ActivitySessionMapper extends BaseMapper<ActivitySession> {

    /**
     * 根据活动ID获取所有场次
     * @param activityid 活动ID
     * @return 场次列表
     */
    @Select("SELECT * FROM activity_session WHERE activityid = #{activityid}")
    List<ActivitySession> getActivitySessionByActivityId(@Param("activityid") Integer activityid);
} 